//
//  Address.m
//  beautyLamp
//
//  Created by Tam Kwok To Michael on 2017/8/17.
//  Copyright © 2017年 Tam Kwok To Michael. All rights reserved.
//

#import "Address.h"

@implementation Address

- (NSString *)address {
    NSString *address = [NSString stringWithFormat:@"%@%@%@%@", self.provice,self.city,self.area,self.detail];
    return address;
}


- (NSString *)areaDetail {
    NSString *address = [NSString stringWithFormat:@"%@%@%@", self.provice,self.city,self.area];
    return address;
}

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{@"provice" : @"userAddr",
             @"city" : @"userAddr2",
             @"area" : @"userAddr3",
             @"detail" : @"userAddr4",
             @"name" : @"linkName",
             @"tel" : @"phoneNumber",
             @"isApprove" : @"defaultAddr"};
}

@end
